// 基础返回
export interface ResponseData {
  code: number;
  message: string;
  ok: boolean;
}

// 账号信息
export interface User {
  id?: number;
  createTime?: string;
  updatedTime?: string;
  username?: string;
  password?: string;
  name?: string;
  phone?: string;
  roleName?: string;
}

// 全部用户信息
export type Records = User[];

// 获取用户列表接口返回
export interface UserResponseData extends ResponseData {
  data: {
    records: Records;
    total: number;
    size: number;
    current: number;
    pages: number;
  };
}

// 角色信息
export interface RoleData {
  id: number;
  createTime?: string;
  updatedTime?: string;
  roleName: string;
  remake: string;
}
// 角色列表
export type RoleList = RoleData[];
// 获取用户角色列表返回
export interface AllRoleListResponseData extends ResponseData {
  data: {
    assignRoles: RoleList;
    allRoleList: RoleList;
  };
}

// 设置角色接口参数
export interface SetRoleData {
  userId: number;
  roleIdList: number[];
}

// 批量删除接口参数
export interface DelUserData {
  userIdList: number[];
}
